<?php

class User{
    
    function __construct(){
        $this->db = new Database(DB_TYPE, DB_HOST, DB_NAME, DB_USER, DB_PASS);
    }
    /*ejemplo*/
   public function login($email, $pass){
        $sth = $this->db->prepare('SELECT algo FROM algunatabla WHERE email = :email AND password = :pass');
        $sth->bindValue(':email', $email);
        $sth->bindValue(':pass', sha1($pass));
        $sth->execute();
        return $sth->fetch();
    }
}
?>
